class CreateEvents < ActiveRecord::Migration
  def self.up
    create_table :events do |t|
      t.string :type
      t.string :event_name
      t.string :event_type
      t.string :location
      t.time :start_time
      t.time :stop_time
      t.boolean :monday
      t.boolean :tuesday
      t.boolean :wednesday
      t.boolean :thursday
      t.boolean :friday
      t.boolean :saturday
      t.boolean :sunday
      t.boolean :repeating
      t.datetime :start_date
      t.datetime :end_date
      t.integer :finals_group
      t.integer :ccn
      t.references :course
      t.references :user

      t.timestamps
    end
  end

  def self.down
    drop_table :events
  end
end
